package com.koron.operation.dispatch.bean;

import lombok.Data;

import java.util.Date;
import java.util.Objects;

@Data
public class TabPmpMonitor {
    private Integer autoid;

    private String dpname;

    private Date zeit;

    private Date changetime;

    private String value;

    @javax.persistence.Transient
    private String lastsyntime;

    /**
     * 停机成功,开机成功,停机不成功,事故跳机0,事故停机0,故障停机0,开机不成功,
     *
     */
    @javax.persistence.Transient
    private String oper;

    @javax.persistence.Transient
    private String description;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        TabPmpMonitor that = (TabPmpMonitor) o;
        return Objects.equals(dpname, that.dpname) && Objects.equals(value, that.value);
    }

    @Override
    public int hashCode() {
        return Objects.hash(dpname, value);
    }
}
